/** 
 * OperatorPriority.java
 * @author Lex
 * 2007-8-18 ����04:58:08
 */
package fun.parser.postfix;

import fun.parser.lexer.TokenType;

public class PostfixNodeUtils {
	// ���������ȼ�����ֵԽ�����ȼ�Խ��
	public static int getOperatorPriority(TokenType tokenType) {
		switch (tokenType) {
		case ASSIGN:
			return 0;
		case ADD:
			return 10;
		case MINUS:
			return 10;
		case MULTIPLY:
			return 20;
		case DIVIDE:
			return 20;
		case MOD:
			return 20;
		case POWER:
			return 30;
		default:
			return 0;
		}
	}
}
